package com.csy.stu.entity;

/**
 * 学生实体类
 * @author CSY
 * @date 2025 - 01 - 21
 */
public class Student {
    private int stuId;
    private String name;
    private int age;
    private String sex;
    private String phone;

    public Student() {}

    public Student(int stuId, String name, int age, String sex, String phone) {
        this.stuId = stuId;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.phone = phone;
    }

    public Student(String name, int age, String sex, String phone) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.phone = phone;
    }

    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId=" + stuId +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", phone=" + phone +
                '}';
    }
}
